package com.homedo.microservice.distributed.id.service.conf;

import com.google.common.collect.Maps;
import com.homedo.microservice.distributed.id.service.bean.po.LeafAllocExtraNo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;

public class LeafAllocExtraNoConf {

    private static final Logger LOGGER = LoggerFactory.getLogger(LeafAllocExtraNoConf.class);
    private static LeafAllocExtraNoConf instance = new LeafAllocExtraNoConf();

    private static final AtomicReference<Map<Integer, LeafAllocExtraNo>> confsRef = new AtomicReference(Maps.newConcurrentMap());

    private LeafAllocExtraNoConf() {
    }

    public static LeafAllocExtraNoConf getInstance() {
        return instance;
    }

    public Map<Integer, LeafAllocExtraNo> getConfs() {
        return confsRef.get();
    }

}
